import http from "./http";
export const getAllResourceCategoryApi = (): RSP<ResourceCategory[]> =>
  http.get("/resourceCategory/listAll");

export const getAllResouceApoi = (): RSP<Resource[]> =>
  http.get(`/resource/listAll`);

export const getResourceListByRoleIdApi = (roleId: number): RSP<Resource[]> =>
  http.get(`/role/listResource/${roleId}`);
